<html>
<head><meta charset="utf-8"><title>a bug in less? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/a.20bug.20in.20less.3F.html">a bug in less?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="206124743"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/a%20bug%20in%20less%3F/near/206124743" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/a.20bug.20in.20less.3F.html#206124743">(Aug 06 2020 at 10:32)</a>:</h4>
<p>Has anyone ever ran into this happening in <code>less</code>? It makes looking through logs a real pain: </p>
<p><a href="/user_uploads/4715/R7BlUbBqial-Dj_cdBp72zIY/Peek-2020-08-06-11-28.gif">Peek-2020-08-06-11-28.gif</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/R7BlUbBqial-Dj_cdBp72zIY/Peek-2020-08-06-11-28.gif" title="Peek-2020-08-06-11-28.gif"><img src="/user_uploads/4715/R7BlUbBqial-Dj_cdBp72zIY/Peek-2020-08-06-11-28.gif"></a></div><p>In the gif, I'm just going up one line at a time. Been able to reproduce it with the same file with multiple terminal emulators and in/out of tmux, so I don't think it is those.</p>



<a name="206124851"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/a%20bug%20in%20less%3F/near/206124851" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/a.20bug.20in.20less.3F.html#206124851">(Aug 06 2020 at 10:34)</a>:</h4>
<p>It must be when the line before wraps.</p>



<a name="206125799"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/a%20bug%20in%20less%3F/near/206125799" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/a.20bug.20in.20less.3F.html#206125799">(Aug 06 2020 at 10:46)</a>:</h4>
<p>So, this only happens when you use <code>-r</code> to make ASCII colour codes work, rather than <code>-R</code>.</p>



<a name="206125825"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/a%20bug%20in%20less%3F/near/206125825" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/a.20bug.20in.20less.3F.html#206125825">(Aug 06 2020 at 10:47)</a>:</h4>
<div class="codehilite"><pre><span></span><code>       -r or --raw-control-chars
              Causes  &quot;raw&quot;  control characters to be displayed.  The default is to display control characters using the caret notation; for example, a control-A (octal
              001) is displayed as &quot;^A&quot;.  Warning: when the -r option is used, less cannot keep track of the actual appearance of the screen (since this depends on  how
              the screen responds to each type of control character).  Thus, various display problems may result, such as long lines being split in the wrong place.
</code></pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>